<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/BusinessTool',
    'namespace' => 'Frieza\\Modules\\BusinessTool\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('comment/index', 'CommentController@index');
    $router->get('comment/index/create', 'CommentController@create');
    $router->post('comment/index/save', 'CommentController@save');
    $router->delete('comment/index/{id}', 'CommentController@delete');

    //收藏&点赞 美化
    $router->get('likeAndFav/index', 'LikeAndFavController@index');
    $router->get('likeAndFav/index/create', 'LikeAndFavController@create');
    $router->get('likeAndFav/stop/{id}', 'LikeAndFavController@stop');
    $router->post('likeAndFav/save', 'LikeAndFavController@save');

    //内容计数器管理
    $router->get('contentCounter/index', 'ContentCounterController@index');
    $router->post('contentCounter/addWhite', 'ContentCounterController@addWhite');

    $router->get('contentCounterSet/create', 'ContentCounterController@createContentCounterSet');
    $router->post('contentCounter/setCounterSubmit', 'ContentCounterController@setCounterSubmit');
});
